package org.example.designPattern.structural.proxy.dynamicproxy.cglibProxy;

import org.example.designPattern.structural.proxy.dynamicproxy.jdkProxy.IPerson;
import org.example.designPattern.structural.proxy.dynamicproxy.jdkProxy.Zhangsan;


/*
* Cglib代理：将目标类作为父类来创建代理类
* */
public class CglibProxyTest {
    public static void main(String[] args) {
        CglibProxy cglibProxy = new CglibProxy();
        IPerson instance = cglibProxy.getInstance(new Zhangsan());
        instance.requirement();
    }
}
